#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    double a, b, c, d, e;
    while (scanf("%lf %lf %lf %lf %lf", &a, &b, &c, &d, &e) != EOF)
    {
        printf("%.1lf ", a);
        printf("%.1lf ", b);
        printf("%.1lf ", c);
        printf("%.1lf ", d);
        printf("%.1lf ", e);
        printf("%.1lf ", a + b + c + d + e);
        printf("\n");
    }
    return 0;
}
